package com.hitqz.robot.biz.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

@Configuration
public class ScheduledConfig {

    /** 以下bean  二选一**/

    @Bean
    public ScheduledExecutorService scheduledThreadPool() {
        ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(25);
        return scheduledThreadPool;
    }

}
